Freescale Semiconductor /MKL82Z7 /TPM2 /SC

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as SC

31 2827 2423 2019 1615 1211 87 43 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (000)PS0 (00)CMOD 0 (0)CPWMS 0 (0)TOIE 0 (0)TOF 0 (0)DMA

PS=000, DMA=0, TOF=0, CPWMS=0, TOIE=0, CMOD=00

Description

Status and Control

Fields

PS

Prescale Factor Selection

0 (000): Divide by 1

1 (001): Divide by 2

2 (010): Divide by 4

3 (011): Divide by 8

4 (100): Divide by 16

5 (101): Divide by 32

6 (110): Divide by 64

7 (111): Divide by 128

CMOD

Clock Mode Selection

0 (00): TPM counter is disabled

1 (01): TPM counter increments on every TPM counter clock

2 (10): TPM counter increments on rising edge of TPM_EXTCLK synchronized to the TPM counter clock

CPWMS

Center-Aligned PWM Select

0 (0): TPM counter operates in up counting mode.

1 (1): TPM counter operates in up-down counting mode.

TOIE

Timer Overflow Interrupt Enable

0 (0): Disable TOF interrupts. Use software polling or DMA request.

1 (1): Enable TOF interrupts. An interrupt is generated when TOF equals one.

TOF

Timer Overflow Flag

0 (0): TPM counter has not overflowed.

1 (1): TPM counter has overflowed.

DMA

DMA Enable

0 (0): Disables DMA transfers.

1 (1): Enables DMA transfers.

Links

() ()